/*
 * File: gov.kdrm.mygset.util.ErrorUtil.java
 *
 * Copyright (c) 2009 PT. XYBASE INDONESIA,
 * All Rights Reserved.
 *
 * This software is the confidential and proprietary information
 * of PT. XYBASE INDONESIA ("Confidential Information"). You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered
 * into with PT. XYBASE INDONESIA.
 *
 * Project:	mygset2
 * Created: Jul 16, 2009 1:54:08 PM
 */

package app.rci.util;

/**
 * This utility class will convert error number into key error number.
 *
 * <p>Revision Information:<br/><i>
 * $Date: 2009-09-08 16:15:55 +0700 (Tue, 08 Sep 2009) $<br/>
 * $Revision: 6491 $
 * $LastChangedBy: imam $
 * </i></p>
 *
 * @author Sabri Rusda
 */
public class ErrorUtil {

	public static String getKeyErrorNumber(int errorNumber){
		String result = String.valueOf(errorNumber);
		if((errorNumber < 0) && (errorNumber != -10000)){
			int length = result.length();
			result = "-"+result.substring(length -2);
		}
		return result;
	}
}
